using System;
using System.Collections.Generic;
using System.Text;
using SqlCeViewer.CommonMethod;
using SqlCeViewer.Base;

namespace SqlCeViewer
{
    internal class GlobalInfo
    {
        internal static List<string> _curHistoryList = new List<string>();

        internal static string HelpFile
        {
            get
            {
                return AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Content\\" + Properties.Settings.Default.HelpFile;
            }

        }

        internal static string ColumnName = "COLUMN_NAME";
        internal static string DataType = "DATA_TYPE";
        internal static string DataLength = "CHARACTER_MAXIMUM_LENGTH";
        //internal static string Unique= "Unique";
        //internal static string PrimaryKey = "COLUMN_NAME";
        internal static string AllowNull = "IS_NULLABLE";

        private static IDbEnginer _mainEnginer = new CEEnginer();
        internal static IDbEnginer MainEngineer
        {
            get
            {
                return _mainEnginer;
            }

        }

        private static Log4MyNet.MainLog _log = new Log4MyNet.MainLog();
        internal static Log4MyNet.MainLog log
        {
            get
            {
                return _log;
            }

        }


        internal static readonly string SQLCE_FILE_FILTER = "Sql Ce db file (*.sdf)|*.sdf|All Files(*.*)|*.*";
        internal static readonly string MDB_FILE_FILTER = "MDB file (*.mdb)|*.mdb|All Files(*.*)|*.*";

        internal static IWindowIDE MainIDE;

    }
}
